package com.lotterymanage.page;

import java.io.Serializable;

/**
 * 分页查询的基类.
 * @author ponder
 */
public class PaginationQueryBean implements Serializable {

    /**
     * 序列号.
     */
    private static final long serialVersionUID = 2326430060698832072L;

    /**
     * 初始化函数.
     */
    public PaginationQueryBean() {
        this.curPage = 1;
        this.shownum = Pagination.DEFAULT_ONE_PAGE_ROW;
    }

    /**
     * 当前页号.
     */
    private int curPage;

    /**
     * 每页显示的条数.
     */
    private int shownum;

    /**
     * 分页的数据.
     */
    private Pagination pagination;

    /**
     * @return the curPage
     */
    public int getCurPage() {
        return curPage;
    }

    /**
     * @param _curPage the curPage to set
     */
    public void setCurPage(final int _curPage) {
        curPage = _curPage;
    }

    /**
     * @return the shownum
     */
    public int getShownum() {
        return shownum;
    }

    /**
     * @param _shownum the shownum to set
     */
    public void setShownum(final int _shownum) {
        shownum = _shownum;
    }

    /**
     * @return the pagination
     */
    public Pagination getPagination() {
        return pagination;
    }

    /**
     * @param _pagination the pagination to set
     */
    public void setPagination(final Pagination _pagination) {
        pagination = _pagination;
    }

}
